package com.hello.world.http.lighthouse.data;


import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * A DTO for the CmOrgStructure entity.
 */
@Data
public class CmOrgStructureDTO implements Serializable {

    public CmOrgStructureDTO(String name, String cityCode) {
        this.name = name;
        this.parentId = parentId;
        this.departId = departId;
        this.cityCode = cityCode;
    }

    private Long id;

    @NotNull
    private String name;

    @NotNull
    private Long parentId;

    @NotNull
    private String departId;

    @NotNull
    private String cityCode;

    @NotNull
    private Integer level;

    @NotNull
    private Integer status;

    private Long creator;

    private Integer system;

    private ZonedDateTime createTime;

    private ZonedDateTime updateTime;

}
